﻿using CefSharp;

namespace Web_rongmeiti_sys.PublishToRongMeiTi
{
    /// <summary>
    /// Cookie获取
    /// </summary>
    /// 创建时间：2023-5-25 13:38:44。作者:王浩力
    public class CookieVisitorHandle : ICookieVisitor
    {
        /// <summary>
        /// 处理Cookie,调用者自定义处理实现
        /// </summary>
        public Action<Cookie> OnCookie;

        public void Dispose()
        {
        }

        public bool Visit(Cookie cookie, int count, int total, ref bool deleteCookie)
        {
            OnCookie?.Invoke(cookie);
            return true;
        }
    }
}
